Skip to content

Conversation

zeripath
Copy link
Contributor

Backport #16461

Unfortunately #16435 asserts the wrong error and should use
os.LinkError not os.PathError.

Fix #16439

Signed-off-by: Andrew Thornton [email protected]

Backport go-gitea#16461

Unfortunately go-gitea#16435 asserts the wrong error and should use
os.LinkError not os.PathError.

Fix go-gitea#16439

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added this to the 1.14.5 milestone Jul 16, 2021
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jul 16, 2021
@zeripath
Copy link
Contributor Author

Windows users it would be very helpful if you could test this. If you cannot build this:

https://www.eldritchkitty.com/~andrew/gitea-1.14.5-16463-windows-4.0-amd64.exe is a windows build of 1.14 with #16463 compiled in.

https://www.eldritchkitty.com/~andrew/gitea-1.14.5-16463-windows-4.0-amd64.exe.asc is the gpg signature signed by my key if you want to assert that this from me.

@zeripath
Copy link
Contributor Author

@onlygecko @julian-go

@julian-go
Copy link

Earliest I can test this is on Monday.

@zeripath
Copy link
Contributor Author

zeripath commented Jul 16, 2021

OK well I think we can just merge #16461, #16462, and #16463 because looking at the code for os.Rename - it's clear that it always returns os.LinkError not os.PathError and #16435 and its backport is just wrong.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 16, 2021
@zeripath zeripath merged commit e6c2225 into go-gitea:release/v1.14 Jul 16, 2021
@zeripath zeripath deleted the backport-16461-v1.14 branch July 16, 2021 16:48
@zeripath
Copy link
Contributor Author

OK look like this isn't enough see: #16481

@zeripath zeripath mentioned this pull request Aug 1, 2021
6 tasks
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants